(function ($, window) {
    $.Utils = $.Utils || {};
    var isPublish = true,  //备注:部署服务器的时候,设置成true- //
        targetIpPort = '172.16.6.102:8060',
        debugServer = 'http://' + targetIpPort;
    $.Utils.urlPath = function (uri, useLocal) {
        if (!uri)return;
        var server;
        server = isPublish ? "" : useLocal ? "/mock" : debugServer;
        console.log(uri.indexOf('/') == 0 ? (server + uri) : (server + '/' + uri))
        return uri.indexOf('/') == 0 ? (server + uri) : (server + '/' + uri);
    };

    $.Utils.showTip = function (msg) {
        console.log(msg)
        var html = "";
        html += "<div class='showTipBox'>";
        html += "<div class='tipBox'>" + msg + "</div>";
        html += "</div>";
        $("body").append(html);
        setTimeout(function () {
            $('.showTipBox').remove();
        }, 3000)
    }

    $.Utils.loadingInit = function () {
        var html = "";
        html += "<img class='loadImg' src='images/loading.gif' />"
        $("body").append(html);
    }
    $.Utils.loadingRemov = function () {
        $(".loadImg").remove();
    }


}($, window));